package com.lancoo.znbkxx.teacher.aibkTestCoach.studyAnalysis

import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import kotlinx.android.synthetic.main.dialog_classical.view.*
import kotlinx.android.synthetic.main.dialog_date.view.tv_title
import kotlinx.android.synthetic.main.fmt_onlinetutor.view.*

/**
 * Created by Dadong on 2021/2/22
 * Describe:
 */
class StatisticAdapter(layoutResId: Int, statisticData: MutableList<String>)
    : BaseQuickAdapter<String, BaseViewHolder>(layoutResId, statisticData) {

    override fun convert(helper: BaseViewHolder, item: String?) {
        with(helper.itemView) {
            tv_num.text = item
            tv_unit.visibility = View.INVISIBLE
            when (helper.position) {
                0 -> {
                    tv_title.text = "已完成试卷份数"
                    tv_unit.visibility = View.VISIBLE
                }
                1 -> {
                    tv_title.text = "班级得分率"
                }
                2 -> {
                    tv_title.text = "班级试卷平均得分率排名"
                }
                3 -> {
                    tv_title.text = "试卷按时提交率"
                }
                4 -> {
                    tv_title.text = "班级优秀率"
                }
                5 -> {
                    tv_title.text = "班级合格率"
                }
            }
        }
    }

}